import salseApi from "@/api/declaration/erp/salseApi"
import httpRequest from "@/config/axios/httpRequest"
import { ErpSaleSummaryModel } from "@/models/erp/ErpSaleSummaryModel"
import { ErpSaleTimeSummaryModel } from "@/models/erp/ErpSaleTimeSummaryModel"


// ERP 销售统计 API
export const SaleStatisticsApi = {
  // 获得销售统计
  getSaleSummary: async () => {
    return await httpRequest.get<ErpSaleSummaryModel>(salseApi.GetSaleSummary)
  },

  // 获得销售时间段统计
  getSaleTimeSummary: async () => {
    return await httpRequest.get<ErpSaleTimeSummaryModel>(salseApi.GetSaleTimeSummary)
  }
}
